package com.ship.system.api;

import com.ship.common.core.constant.ServiceNameConstants;
import com.ship.system.api.domain.SysMessageSend;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 消息管理模块
 * 
 * @author zhangyh
 */
@FeignClient(contextId = "remoteMessageSendService", value = ServiceNameConstants.SYSTEM_SERVICE)
public interface RemoteMessageSendService
{
    /**
     * 系统消息发送
     * @param messageSend
     */
    @PostMapping(value = "/systemFeign/messageSend")
    void messageSend(@RequestBody SysMessageSend messageSend);

    /**
     * 系统消息发送批量
     * @param messageSend
     */
    @PostMapping(value = "/systemFeign/messageSend/batch")
    void messageSendBatch(@RequestBody List<SysMessageSend> messageSend);
}
